<?php

namespace App\Helpers;

/**
 * 接口状态码定义
 */
class ResponseEnum
{

    /*-------------------------------------------------------------------------------------------*/
    // 200表示服务器成功地接受了客户端请求
    const HTTP_OK = [1, '操作成功'];
    const HTTP_ERROR = [0, '操作失败'];
    const TOKEN_ERROR = [401, 'token过期'];
    const CLIENT_PARAMETER_ERROR = [0, '参数错误'];

    const DAO_ERROR = [0, '处理错误'];

    const SYSTEM_ERROR = [500, '服务器错误'];
}
